{extend name="layout_modal" /}
{block name="content"}
<!-- Content Header (Page header) -->
<section class="content" style="padding-top:0px;">
<div class="row">
  <div class="box">
    <!-- /.box-header -->
    <!-- form start -->
    <form role="form" action="{:url('data_update')}">
      <div class="box-body">
        <div class="form-group">
          <label for="exampleInputEmail1">标题</label>
          <input type="text" class="form-control" placeholder="标题" name="title" value="{$info.title}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">排序</label>
          <input type="text" class="form-control" placeholder="排序" name="sort" value="{$info.sort}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">链接</label>
          <input type="text" class="form-control" placeholder="链接" name="url" value="{$info.url}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">上级菜单</label>
          <select name="pid" class="form-control">
            {volist name="Menus" id="v"}
            <option value="{$v.id}" {eq name="$info.pid" value="$v['id']"}selected{/eq}>{$v.title_show}</option>
            {/volist}
          </select>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">分组</label>
          <input type="text" class="form-control" placeholder="分组" name="group" value="{$info.group}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">是否隐藏</label>
          <div>
            <label><input type="radio" name="hide" value="1" {eq name="$info.hide" value="1"}checked{/eq}> 是</label>
            <label><input type="radio" name="hide" value="0" {eq name="$info.hide" value="0"}checked{/eq}> 否</label>
          </div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">仅开发者可见</label>
          <div>
            <label><input type="radio" name="is_dev" value="1" {eq name="$info.is_dev" value="1"}checked{/eq}> 是</label>
            <label><input type="radio" name="is_dev" value="0" {eq name="$info.is_dev" value="0"}checked{/eq}> 否</label>
          </div>
        </div>
      </div>
      <!-- /.box-body -->
      <input type="hidden" value="{$info.id}" name="id">
    </form>
  </div>
</div>
</section>
<!-- /.content -->
{/block}